package test_2_28;

public class Su_Shu {
    public static void main(String[] args) {

        int count = 1;
        for (int i = 2; i <= 100; i++) {
            for (int j = 2; j <i/*= Math.sqrt(i)*/; j++) {
                count=1;
                if (i % j == 0 ) {
                        System.out.print(i + "不是素数。");
                        count=0;
                        break;
                }
            }
            if (count == 1) {
                System.out.print(i+"是素数");
            }
        }
    }
}
